
<?php
//header('Content-Type: text/html; charset=utf-8');


$codigo=$_GET['cod'];//


include'clsJovAdm.php';
$objContenido =  new contenido;
$objContenido -> cnox();



$resultados = mysql_query("select relac.id_concep as id_concep,relac.id_tema as id_tem, tem.nombre as tema,concep.titulo as titulo,concep.concepto as concepto,concep.post_date as fecha   from tb_temas tem inner join tb_relac_tema relac on tem.id_tema =relac.id_tema INNER JOIN tb_concepto concep on concep.id_concep =relac.id_concep where relac.id_tema=$codigo order by tem.nombre asc  ");	
	
	
	?>
    <br>
    <link href="css/bootstrap.css" rel="stylesheet">
   
    <link href="css/bootstrap-responsive.css" rel="stylesheet">
    
 <table  border='0'  class="table table-hover" >
   
    <thead>
  <tr >
  <th    height="30">Tema</th>
   <!-- <td width="42" bgcolor="#D6D6D6" height="30"><strong>Código</strong></td>-->
    <th   >Titulo</th>
    <th   >Fecha Registro</th>
  
  
   
   
  
    
    <th  >Detalle</th>
    
  </tr>
  </thead>
  
  
    <?
	  $bkI2=1;
	
	while($campo=mysql_fetch_assoc($resultados))
{

 $strColumns2 = 2;

if (($bkI2 % $strColumns2) == 0)
		{
			$a="#F2F2F2";
			
			
		}	
		
		else
		
		{
		$a="#FFFFFF";
			
		}	
		
		$fecR= $campo['fecha'];
                preg_match('/(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})/',$fecR,$cam);
                $fec2R= $cam[3]."-".$cam[2]."-".$cam[1]; 

echo("<tbody><tr >
<td  >".utf8_encode($campo['tema'])."</td>

<td>".utf8_encode($campo['titulo'])."</td>

<td>".$fec2R."</td>


<td > <a href='../php/articulo3.php?cod=".$campo['id_concep']."&codtem=".$campo['id_tem']." ' target='_blank'   ><img src='images/det.png' width='12' height='12' border='0' > </a></td>



</tr></tbody>");


$bkI2 = $bkI2 + 1;	
	
	}
	mysql_free_result($resultados)
	?>
   
</table>



